package com.ynny.mapper;

import com.ynny.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {
    @Select("select * from st_table")
    List<Student> selectAll();
    int insertBatch(@Param("studentList") List<Student> studentList);
    List<Student> select(Student student);
    int updateByNumber(Student student);
    int deleteByNumber(String number);

    void insert(Student student);
}
